<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TAssetInfo类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_asset_info.html">TAssetInfo</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_t_asset_info-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">awtk.TAssetInfo类 参考</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a918dbe5928bac3396d21cbd8f333f049" id="r_a918dbe5928bac3396d21cbd8f333f049"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a918dbe5928bac3396d21cbd8f333f049">TAssetInfo</a> (long <a class="el" href="#ab95c7ce590aa3c03b6f7eacac818abf4">nativeObj</a>)</td></tr>
<tr class="separator:a918dbe5928bac3396d21cbd8f333f049"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a802410d30dda0103381c5c87ca90a2ff" id="r_a802410d30dda0103381c5c87ca90a2ff"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a802410d30dda0103381c5c87ca90a2ff">getType</a> ()</td></tr>
<tr class="separator:a802410d30dda0103381c5c87ca90a2ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac511cdb6140842cd86fa41b4cf166c84" id="r_ac511cdb6140842cd86fa41b4cf166c84"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac511cdb6140842cd86fa41b4cf166c84">getName</a> ()</td></tr>
<tr class="separator:ac511cdb6140842cd86fa41b4cf166c84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7cc3e90583f1837ed356931e6c28c51" id="r_ab7cc3e90583f1837ed356931e6c28c51"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab7cc3e90583f1837ed356931e6c28c51">isInRom</a> ()</td></tr>
<tr class="separator:ab7cc3e90583f1837ed356931e6c28c51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c197be50189ff3e14e4bbbf47e83ccc" id="r_a2c197be50189ff3e14e4bbbf47e83ccc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2c197be50189ff3e14e4bbbf47e83ccc">setIsInRom</a> (boolean is_in_rom)</td></tr>
<tr class="separator:a2c197be50189ff3e14e4bbbf47e83ccc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59d6dc93527f11dea2d9a3ea5faa9bbc" id="r_a59d6dc93527f11dea2d9a3ea5faa9bbc"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a59d6dc93527f11dea2d9a3ea5faa9bbc">getSubtype</a> ()</td></tr>
<tr class="separator:a59d6dc93527f11dea2d9a3ea5faa9bbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51be041271511a6c181668da13a0787f" id="r_a51be041271511a6c181668da13a0787f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a51be041271511a6c181668da13a0787f">getFlags</a> ()</td></tr>
<tr class="separator:a51be041271511a6c181668da13a0787f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae5ed6ed85ccb1e0f506cb9450adbc1e" id="r_aae5ed6ed85ccb1e0f506cb9450adbc1e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aae5ed6ed85ccb1e0f506cb9450adbc1e">getSize</a> ()</td></tr>
<tr class="separator:aae5ed6ed85ccb1e0f506cb9450adbc1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a43c0c83b7ffcfc497f51b82a4b6aeb" id="r_a1a43c0c83b7ffcfc497f51b82a4b6aeb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1a43c0c83b7ffcfc497f51b82a4b6aeb">getRefcount</a> ()</td></tr>
<tr class="separator:a1a43c0c83b7ffcfc497f51b82a4b6aeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a31523b7cddb3004a5bace9ecb35b3bae" id="r_a31523b7cddb3004a5bace9ecb35b3bae"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_asset_info.html">TAssetInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a31523b7cddb3004a5bace9ecb35b3bae">cast</a> (long <a class="el" href="#ab95c7ce590aa3c03b6f7eacac818abf4">nativeObj</a>)</td></tr>
<tr class="separator:a31523b7cddb3004a5bace9ecb35b3bae"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:ab95c7ce590aa3c03b6f7eacac818abf4" id="r_ab95c7ce590aa3c03b6f7eacac818abf4"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab95c7ce590aa3c03b6f7eacac818abf4">nativeObj</a></td></tr>
<tr class="separator:ab95c7ce590aa3c03b6f7eacac818abf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>单个资源的描述信息。 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a918dbe5928bac3396d21cbd8f333f049" name="a918dbe5928bac3396d21cbd8f333f049"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a918dbe5928bac3396d21cbd8f333f049">&#9670;&#160;</a></span>TAssetInfo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TAssetInfo.TAssetInfo </td>
          <td>(</td>
          <td class="paramtype">long</td>          <td class="paramname"><span class="paramname"><em>nativeObj</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a31523b7cddb3004a5bace9ecb35b3bae" name="a31523b7cddb3004a5bace9ecb35b3bae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31523b7cddb3004a5bace9ecb35b3bae">&#9670;&#160;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_asset_info.html">TAssetInfo</a> awtk.TAssetInfo.cast </td>
          <td>(</td>
          <td class="paramtype">long</td>          <td class="paramname"><span class="paramname"><em>nativeObj</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<a id="a51be041271511a6c181668da13a0787f" name="a51be041271511a6c181668da13a0787f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51be041271511a6c181668da13a0787f">&#9670;&#160;</a></span>getFlags()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TAssetInfo.getFlags </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>资源标志。 </p>

</div>
</div>
<a id="ac511cdb6140842cd86fa41b4cf166c84" name="ac511cdb6140842cd86fa41b4cf166c84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac511cdb6140842cd86fa41b4cf166c84">&#9670;&#160;</a></span>getName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TAssetInfo.getName </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取名称。</p>
<dl class="section return"><dt>返回</dt><dd>返回名称。 </dd></dl>

</div>
</div>
<a id="a1a43c0c83b7ffcfc497f51b82a4b6aeb" name="a1a43c0c83b7ffcfc497f51b82a4b6aeb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a43c0c83b7ffcfc497f51b82a4b6aeb">&#9670;&#160;</a></span>getRefcount()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TAssetInfo.getRefcount </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>引用计数。 is_in_rom == FALSE时才有效。 </p>

</div>
</div>
<a id="aae5ed6ed85ccb1e0f506cb9450adbc1e" name="aae5ed6ed85ccb1e0f506cb9450adbc1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae5ed6ed85ccb1e0f506cb9450adbc1e">&#9670;&#160;</a></span>getSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TAssetInfo.getSize </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>大小。 </p>

</div>
</div>
<a id="a59d6dc93527f11dea2d9a3ea5faa9bbc" name="a59d6dc93527f11dea2d9a3ea5faa9bbc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59d6dc93527f11dea2d9a3ea5faa9bbc">&#9670;&#160;</a></span>getSubtype()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TAssetInfo.getSubtype </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>子类型。 </p>

</div>
</div>
<a id="a802410d30dda0103381c5c87ca90a2ff" name="a802410d30dda0103381c5c87ca90a2ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a802410d30dda0103381c5c87ca90a2ff">&#9670;&#160;</a></span>getType()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TAssetInfo.getType </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取类型。</p>
<dl class="section return"><dt>返回</dt><dd>返回类型。 </dd></dl>

</div>
</div>
<a id="ab7cc3e90583f1837ed356931e6c28c51" name="ab7cc3e90583f1837ed356931e6c28c51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7cc3e90583f1837ed356931e6c28c51">&#9670;&#160;</a></span>isInRom()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TAssetInfo.isInRom </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>资源是否在ROM中。</p>
<dl class="section return"><dt>返回</dt><dd>返回 TRUE 为在 ROM 中，返回 FALSE 则不在。 </dd></dl>

</div>
</div>
<a id="a2c197be50189ff3e14e4bbbf47e83ccc" name="a2c197be50189ff3e14e4bbbf47e83ccc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c197be50189ff3e14e4bbbf47e83ccc">&#9670;&#160;</a></span>setIsInRom()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TAssetInfo.setIsInRom </td>
          <td>(</td>
          <td class="paramtype">boolean</td>          <td class="paramname"><span class="paramname"><em>is_in_rom</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置资源是否在ROM中的标记位。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">is_in_rom</td><td>资源是否在ROM中。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="ab95c7ce590aa3c03b6f7eacac818abf4" name="ab95c7ce590aa3c03b6f7eacac818abf4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab95c7ce590aa3c03b6f7eacac818abf4">&#9670;&#160;</a></span>nativeObj</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long awtk.TAssetInfo.nativeObj</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>原生对象。 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<b>TAssetInfo.java</b></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2
</small></address>
</div><!-- doc-content -->
</body>
</html>
